//
//  FilmPlanController.m
//  statistiscData
//
//  Created by zhaochengfeng on 2016/12/21.
//  Copyright © 2016年 bmwl. All rights reserved.
//

#import "FilmPlanController.h"
#import "LYCircleView.h"


@interface FilmPlanController ()<LYCircleViewDataSource,LYCircleViewDelegate>
{
    LYCircleView *circle;
}

@end

@implementation FilmPlanController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"排片";
    circle = [[LYCircleView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 300)];
    circle.center = self.view.center;
    circle.dataSource = self;
    circle.delegate = self;
    [self.view addSubview:circle];
    [circle mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(64);
        make.left.right.mas_equalTo(0);
        make.height.mas_equalTo(300);
    }];
    

}

- (void)didSelectCircleViewAtIndex:(NSInteger)index{
    NSLog(@"%ld",index);
}

- (NSArray *)percentOfTheCircle{
    return @[@"49.7",@"19.3",@"18.0",@"12.6",@"0.4"];
}

- (NSArray *)textStringOfCircle{
    return @[@"你的名字", @"湄公河行动", @"长城", @"摆渡人", @"其他"];
}

- (NSArray *)hexStringOfCircleColor{
    return nil;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
